package com.service.bean.signal;

import java.util.Date;

import com.service.tools.DateFormat;;

public class GpsSignalPath implements Cloneable {
	public String signalId;	
	public String deviceNo;
	public Date gpsTime;
	public double baiduLng;	
	public double baiduLat;
	public String companyCode;
	public String equipmentId;
	public int sequence;
	public int accStatus;
	/** 车辆行驶速度 */
	public int speed;
	/** 总里程数 */
	public double totalMile;
	public int isInWork;
	public int hasAlarm;
	public double todayMile;
	
	@Override  
    public Object clone()
    {  
		try{
			return super.clone();  
		}catch(Exception e){
			return null;
		}
    }
	
	public Object[] getAll(){
		Object[] array = new Object[14];
		array[0] = "'"+this.signalId+"'";
		array[1] = "'" + this.deviceNo + "'";
		array[2] = "'" + DateFormat.format(this.gpsTime) + "'";
		array[3] = String.valueOf(this.baiduLng);
		array[4] = String.valueOf(this.baiduLat);
		array[5] = "'" + this.companyCode + "'";
		array[6] = "'"+this.equipmentId+"'";
		array[7] = this.sequence;
		array[8] = "'" + this.accStatus + "'";
		array[9] = this.speed;
		array[10] = String.valueOf(this.totalMile);
		array[11] = this.isInWork;
		array[12] = this.hasAlarm;
		array[13] = String.valueOf(this.todayMile);
		return array;
	}
}
